<?php
namespace  App\Http\Model;


use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class JewelleryInfo extends Model
{
	protected $table = 't_JewelleryInfo';
 	public $timestamps = false;
	

	  public function readCountry()//查
	 {
	  	return $this->all();
	 }
	 
	 	public function oneCountry($data,$arr)//单条查询
	 {
	 	return $this->where($data,$arr)->get()->toArray();
	 }
	 
	public function delCountry($data)//删
	 {
		$country = $this->where($data);
		return $country->delete();
	}

	public function updCountry($data,$list,$arr)//改
 	{
 	$country = $this->where($data,$list);
 	return $country->update($arr);
 	}
 	
 	public function addCountry($data)//增
 	{
 		return DB::table($table)->insert($data);
 	}
 	
 	
}
